POV-Ray : Newsgroups : povray.newusers : Is there a "string length" function? : Re: Is there a "string length" function? Server Time
31 Jul 2024 10:20:58 EDT (-0400)
  Re: Is there a "string length" function?  
From: Warp
Date: 22 Feb 2003 15:44:58
Message: <3e57e14a@news.povray.org>
Christopher James Huff <cja### [at] earthlinknet> wrote:
> It's a string function.

  If it was, then it could be used anywhere where a string is expected.
It can't.
  For example the #debug command takes as parameter a string. A string
can be a string literal, a string identifier or a string function. Since
strlen() is not a string function (but a float function) it can't be given
to #debug.

> If POV were object oriented, it would 
> be a method of string objects, not floats.

  Its location would not change the fact that it's a float function
(there's no reason why there could not be float functions in a string
class).

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.